package com.ctgu.expresshelper.service.Shop.impl;

import com.ctgu.expresshelper.dao.ShopDao;
import com.ctgu.expresshelper.entity.Shop;
import com.ctgu.expresshelper.service.Shop.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    ShopDao shopDao;

    @Override
    public List<Shop> getAllShop() {
        return shopDao.getAllShop();
    }

    @Override
    public Shop selectShopById(int id) {
        return shopDao.selectShopById(id);
    }
}
